################################################################################
#
#       Project: /src/engine
#   Description: 
#        Author: [kb]ypp
#    Created at: September 28, 2005
# Last modified: 
#
################################################################################

CXX = g++
CXXFLAGS = -O2 -Wall -ansi -pedantic

TARGETS = Log.o Image.o Texture.o GLWindow.o Controller.o Timer.o \
    Application.o

.PHONY: all clean

all: $(TARGETS)

Log.o: Log.cpp Log.h
	$(CXX) $(CXXFLAGS) -c Log.cpp

Image.o: Image.cpp Image.h Log.h
	$(CXX) $(CXXFLAGS) -c Image.cpp

Texture.o: Texture.cpp Texture.h Image.h Log.h
	$(CXX) $(CXXFLAGS) -c Texture.cpp

GLWindow.o: GLWindow.cpp GLWindow.h
	$(CXX) $(CXXFLAGS) -c GLWindow.cpp

Controller.o: Controller.cpp Controller.h
	$(CXX) $(CXXFLAGS) -c Controller.cpp

Timer.o: Timer.cpp Timer.h
	$(CXX) $(CXXFLAGS) -c Timer.cpp

Application.o: Application.cpp Application.h
	$(CXX) $(CXXFLAGS) -c Application.cpp

clean:
	$(RM) -v *.o
